package com.dcw.lixb.designmode.factory;

/**
 * @author lixiaobin
 * @date 2020-07-16 16:37:07
 * @desc 描述信息
 */
public class Main {
    public static void main(String[] args) {
        Bread bread1 = BreadFactory.createBread(BreadFactory.Hamburger);
        Bread bread2 = BreadFactory.createBread(BreadFactory.Sandwich);
        Bread bread3 = BreadFactory.createBread(BreadFactory.HotDog);
        System.out.println("bread1:"+bread1);
        System.out.println("bread2:"+bread2);
        System.out.println("bread3:"+bread3);
    }
}
